<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="/css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form" lay-filter="student-info">
    <input type="hidden" name="id" class="layui-input">
    <input type="hidden" name="stuCode" class="layui-input">
    <input type="hidden" name="createDate" class="layui-input">
    <div class="layui-form-item">
        <label class="layui-form-label required">姓名</label>
        <div class="layui-input-block">
            <input type="text" name="name" lay-verify="required" lay-reqtext="姓名不能为空" placeholder="请输入姓名" value="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">性别</label>
        <div class="layui-input-block">
            <input type="radio" name="sex" value="1" title="男" checked="">
            <input type="radio" name="sex" value="2" title="女">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">年龄</label>
        <div class="layui-input-block">
            <input type="number" name="age" placeholder="请输入年龄" value="" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">班级</label>
        <div class="layui-input-block">
            <select id="stu-class-sel" lay-filter="stu-class" name="classId" lay-verify="required" lay-reqtext="请选择班级">
            </select>
            <div id="class-top"></div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">在校状态</label>
        <div class="layui-input-block">
            <select name="stuStatus" lay-verify="required" lay-reqtext="请选择在校状态">
                <option value="1">正常</option>
                <option value="2">事假</option>
                <option value="3">病假</option>
                <option value="4">休学</option>
                <option value="5">开除</option>
                <option value="6">毕业</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>
<script src="/js/common/ac-common.js" charset="utf-8"></script>
<script src="/js/student/edit.js"></script>

<script id="stu-class-info" type="text/html">
        <table class="layui-table class-top-body">
            <colgroup>
                <col width="120">
                <col>
            </colgroup>
            <tbody>
            <tr>
                <td>班主任：</td>
                <td>{{d.teacherName}}</td>
            </tr>
            <tr>
                <td>班级信息：</td>
                <td>{{d.className}}
                    {{#  if(d.grade != null && d.stuClass != null){ }}
                    （{{d.grade}}年级{{d.stuClass}}班）
                    {{#  } }}
                </td>
            </tr>
            <tr>
                <td>课程信息：</td>
                <td>
                    {{#  layui.each(d.courses, function(index, item){ }}
                    《{{item.name}}》 任课老师：{{item.lecturerName}}<br>
                    {{#  }); }}
                </td>
            </tr>
            </tbody>
        </table>
</script>
</body>
</html>